import { lazy } from 'react'
const constantRouter = [
  {
    path: '/',
    title: '首页',
    hidden: false,
    icon: 'icon-shouye1',
    Component: lazy(() => import('@/views/Home/index'))
  },
  // {
  //   path: 'systemView',
  //   title: '系统概览',
  //   hidden: false,
  //   icon: 'icon-xitonggailan',
  //   Component: lazy(() => import('@/views/systemView/index')),
  // },
  {
    path: 'roleManage',
    title: '用户管理',
    hidden: false,
    icon: 'icon-yonghu',
    children: [
      {
        index: true,
        path: '/roleManage/userList',
        title: '用户列表',
        hidden: false,
        Component: lazy(() => import('@/views/roleManage/userList/index'))
      },
      {
        path: '/roleManage/userManagee',
        title: '用户管理员',
        hidden: false,
        Component: lazy(() => import('@/views/roleManage/userManager/index'))
      },
      {
        path: '/roleManage/productManager',
        title: '产品管理员',
        hidden: false,
        Component: lazy(() => import('@/views/roleManage/productManager/index'))
      },
      {
        path: '/roleManage/messageManager',
        title: '消息管理员',
        hidden: false,
        Component: lazy(() => import('@/views/roleManage/messageManager/index'))
      }
    ]
  },
  {
    path: 'productManage',
    title: '产品管理',
    hidden: false,
    icon: 'icon-chanpinguanli',
    children: [
      {
        index: true,
        path: '/productManage/enterBankManage',
        title: '产品列表',
        hidden: false,
        Component: lazy(() => import('@/views/productManage/productList/index'))
      },
      {
        path: '/productManage/outBankManage',
        title: '出库管理',
        hidden: false,
        Component: lazy(() => import('@/views/productManage/outBankManage/index'))
      }
    ]
  },
  {
    path: 'messageManage',
    title: '消息管理',
    hidden: false,
    icon: 'icon-xiaoxiguanli',
    children: [
      {
        index: true,
        path: '/messageManage/messageList',
        title: '消息列表',
        hidden: false,
        Component: lazy(() => import('@/views/messageManage/messageList/index'))
      },
      {
        path: '/messageManage/messageManage',
        title: '回收站',
        hidden: false,
        Component: lazy(() => import('@/views/messageManage/recycleBin/index'))
      }
    ]
  },
  {
    path: 'contractManage',
    title: '合同管理',
    hidden: false,
    icon: 'icon-hetongguanli',
    Component: lazy(() => import('@/views/contractManage/index')),
  },
  {
    path: 'oprationLog',
    title: '操作日志',
    hidden: false,
    icon:'icon-caozuorizhi',
    Component: lazy(() => import('@/views/oprationLog/index')),
  },
  {
    path: 'loginLog',
    title: '登录日志',
    hidden: false,
    icon: 'icon-guanlidenglurizhi',
    Component: lazy(() => import('@/views/loginLog/index')),
  },
  {
    path: 'systemSetting',
    title: '系统设置',
    hidden: false,
    icon:'icon-xitongshezhi',
    Component: lazy(() => import('@/views/systemSetting/index')),
  },
]


export default constantRouter
